package com.zuxia.shop;

import com.zuxia.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-shop")
public interface ShopOpenFeignApi {
    @GetMapping("/shop/single/{id}")
    R getShopById(@PathVariable("id") String id) throws Exception;

    @GetMapping("/group/merchant/token/up/{id}/{num}")
    R upGroupSuccessNum(@PathVariable("id") String id,@PathVariable("num") Integer num);

    @GetMapping("/shop/release/single/{id}")
    R getShopReleaseById(@PathVariable("id") String id);

    @GetMapping("/shop/up/num/{id}/{num}")
    R upShopNumById(@PathVariable("id") String id,@PathVariable("num") Long num);

    @GetMapping("/group/merchant/single/{id}")
    R getGroupById(@PathVariable("id") String id);

}
